package com.wgts.wgts.mvp.model;

import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.req.ChangeGoodsNumberRequest;
import com.wgts.wgts.netmodle.req.DeleteShopRequest;
import com.wgts.wgts.netmodle.resp.CurrentEntity;
import com.wgts.wgts.netmodle.resp.ShopCarListEntity;
import com.wgts.wgts.rxjava.MVPResultSubscriber;

import java.util.List;

/*
 *
 *
 *   data:2018/9/619:11
 *
 */public interface IShoppingCarModel {
     //商品数目加减, false减，true加
     void addOrSubtrctShopping(ChangeGoodsNumberRequest request, HttpResultSubscriber<Integer> subscriber);
     //删除商品
    void deleteShopping(Integer Ppoition, Integer position, MVPResultSubscriber<String> subscriber);
    //删除全部选中商品
    void deleteAllShopping(DeleteShopRequest request, HttpResultSubscriber<CurrentEntity> subscriber);


    void getShopCarList(HttpResultSubscriber<List<ShopCarListEntity>> subscriber);
}
